package cn.iune.erp.purchase;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IPurchaseOrderDao {
	
	

	public List<PurchaseOrder> getAll();
	
	public PurchaseOrder getByID(String fID);
	
	public PurchaseOrder getByNo(String stockNo, String enterpriseNo);

	long getUnAgreeCount(String enterpriseNo);

	JSONObject query(JSONObject data) throws SQLException;

	void delete(String fID, String ucode, String uname, String uid);

	PurchaseOrder update(PurchaseOrder obj, String ucode, String uname, String uid);

	void insert(PurchaseOrder obj, String ucode, String uname, String uid);

	PurchaseOrder update(PurchaseOrder obj);

	JSONObject create(JSONObject data);

}
